import {request} from "@/network/request";

//帮助中心管理

//列表
export const HelpList=(params)=>{
    return request({
        url:'/api/boss/help/list',
        method:'get',
        params
    })
}

//新增
export const HelpStore=(data)=>{
    return request({
        url:'/api/boss/help/store',
        method:'post',
        data
    })
}
//编辑
export const HelpUpdate=(data,id)=>{
    return request({
        url:'/api/boss/help/update/'+id,
        method:'put',
        data
    })
}

//删除
export const HelpDelete = (id) => {
  return request({
      url:'/api/boss/help/delete/'+id,
      method:'delete'
  })
}
//显示详情
export const HelpShow = (id) => {
  return request({
      url:'/api/boss/help/show/'+id,
      method:'get'
  })
}
//图片上传
export const Common=(data)=>{
    return request({
        url:'/api/boss/common/upload',
        method:'post',
        data
    })
}
